﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using BaseAPI;

namespace MemorySiteServer.Models
{
    public class RolePermission : BaseEntity
    {
        /// <summary>
        /// 权限对应的Action
        /// </summary>
        [Required]
        [MaxLength(30)]
        public string Action { get; set; }
        /// <summary>
        /// Role外键
        /// </summary>
        public long RoleID { get; set; }
        /// <summary>
        /// 权限对应的角色
        /// </summary>
        public virtual Role Role { get; set; }
    }
}
